﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="SBPweb.PhotoGallery.Client.App"
             >
    <Application.Resources>
        <Style x:Key="rImageButton" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Canvas Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" MinWidth="20" MinHeight="20" Opacity="0.5" Cursor="Hand" MouseEnter="ImageButton_MouseEnter" MouseLeave="ImageButton_MouseLeave" Margin="0,1,1,1">
                            <Rectangle Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" MinWidth="20" MinHeight="20" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Fill="{TemplateBinding Background}" />
                            <Path Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" StrokeLineJoin="Round" Fill="{TemplateBinding BorderBrush}" Data="{TemplateBinding DataContext}" />
                            <ContentPresenter Content="{TemplateBinding Content}" />
                        </Canvas>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</Application>
